package com.rc.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class AiChatTableDef extends TableDef {

    /**
     * 实体类。

 @author 27806
 @since 2024-06-24
     */
    public static final AiChatTableDef AI_CHAT = new AiChatTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn CON_ID = new QueryColumn(this, "con_id");

    public final QueryColumn AI_IMAGE = new QueryColumn(this, "ai_image");

    public final QueryColumn BOT_CONTENT = new QueryColumn(this, "bot_content");

    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    public final QueryColumn USER_CONTENT = new QueryColumn(this, "user_content");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, CON_ID, AI_IMAGE, BOT_CONTENT, CREATE_TIME, USER_CONTENT};

    public AiChatTableDef() {
        super("rc", "ai_chat");
    }

    private AiChatTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public AiChatTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new AiChatTableDef("rc", "ai_chat", alias));
    }

}
